package com.evan.wj.service;

import com.evan.wj.dao.LibraryDao;
import com.evan.wj.pojo.Library;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Optional;

@Service
public class LibraryService {
    @Autowired
    LibraryDao libraryDao;

    public Library select(int id){

        return libraryDao.findById(id);
    }
}
